import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home"
import Login from "../components/Login.vue";
import Register from "../components/Register.vue";
import Course from "../components/Course.vue";

Vue.use(Router);
export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: "Home",
      component: Home,
    }, {
      path: '/home',
      name: "Home",
      component: Home,
    },
    {
      name: "Login",
      path: "/user/login",
      component: Login,
    },
    {
      name: "Register",
      path: "/user/register",
      component: Register,
    },
    {
      path: '/course',
      name: 'Course',
      component: Course,
    },
  ]
})
